package architect.design.patterns.behavior.iterator;

/**
 * 频道
 *
 * @author guanxin
 * @date 2018/5/6 13:51
 */

public class Channel {

    private double frequency;
    private ChannelTypeEnum type;

    public Channel(double freq, ChannelTypeEnum type) {
        this.frequency = freq;
        this.type = type;
    }

    public double getFrequency() {
        return frequency;
    }

    public ChannelTypeEnum getType() {
        return type;
    }

    @Override
    public String toString() {
        return "Frequency = " + this.frequency + ", Type = " + this.type;
    }
}
